<template>
  <div>
    <h2>消息id：{{ $route.query.id }}</h2>
    <p>消息title：{{ $route.query.title }}</p>
  </div>
</template>

<script>
export default {
  name: 'Detail',
  data() {
    return {
      id: 666,
      title: '消息666'
    }
  },
  mounted() {
    console.log(this.$route)
  }
}
</script>
